Error cancelling comparator based switch capacitor circuit and method thereof

ABSTRACT

An error canceling comparator based switch capacitor (CBSC) circuit cyclically works through multiple phases including a sampling phase and a transfer phase. During the sampling phase, an input voltage and also an error due to circuit non-idealities are sampled. During the transfer phase, the sampled input voltage is amplified by a fixed ratio and transferred to an output load, while the error is cancelled by reversing the polarity of connection for an internal capacitor within the CBSC circuit.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is related to the following copending application, owned by the assignee of this invention:

1) Ser No. ______, for “ERROR AVERAGING COMPARATOR BASED SWITCH CAPACITOR CIRCUIT AND METHOD THEREOF”

2) Ser No. ______, for “NOISE SHAPING COMPARATOR BASED SWITCH CAPACITOR CIRCUIT AND METHOD THEREOF”

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to comparator based switch capacitor circuit, in particular to comparator based switch capacitor circuit that performs circuit error cancellation.

2. Description of Related Art

Comparator based switch capacitor (CBSC) circuit is an emerging technology that offers many advantages over conventional operational amplifier based switch capacitor circuit. Like a conventional switch capacitor circuit, a CBSC circuit also works in a two-phase manner. The two phases are “sampling” phase and “transfer” phase, controlled by two non-overlapping clocks, say φ₁ and φ₂, respectively. In a typical two-phase CBSC circuit working at a sampling rate off, the duration of each phase is slightly less than half of the sampling clock period T=1/f. During sampling phase (φ₁), an input voltage V_(I) is sampled using a sampling capacitor C₁ by connecting the “+” end of C₁ to V_(I) and the “−” end to a common mode voltage V_(CM). During transfer phase (φ₂), the charge stored on the sampling capacitor C₁ is transferred to an integrating capacitor C₂ via a charge transfer circuit comprising a comparator 130 and a charge pump (CP) 140, which includes a current source I₁ and a current sink I₂, as shown in FIG. 1. In FIG. 1, C_(L) is a load capacitor for the CBSC circuit 100, V_(DD) is a supply voltage, V_(SS) is the lowest potential in the system. Note that V_(CM) is the common mode voltage that is usually close to the mean value of V_(DD) and V_(SS). Also, C_(L) is terminated to V_(CM) via a sampling switch 150, which is controlled by a switch signal S. The purpose of the charge transfer circuit is to transfer the charge stored on C₁ to C₂ until the potentials on the two input ends of comparator 130 are equal, i.e. V_(X)=V_(CM). The principle of the CBSC circuit 100 during transfer phase (φ₂) is briefly described as follows.

At the beginning of the charge transfer phase, a brief preset (P) must be performed to clear C_(L) and ensure the voltage V_(X) is below V_(CM). The preset is done by momentarily pulling the output node V_(O) to V_(SS), the lowest potential in the system. Next, a coarse charge transfer phase (E₁) begins. During coarse charge transfer phase, V_(X)<V_(CM) and CP 140 turns on the current source I₁ to inject charge into the circuit comprising C_(L), C₂, and C₁, resulting in a relatively fast voltage ramp on V_(X) toward V_(CM). CP 140 continues to inject charge until comparator 130 detects V_(X)>V_(CM). At the instant where comparator 130 detects V_(X)>V_(CM), a fine charge transfer phase (E₂) commences by turning off the current source I₁ and turning on the current sink I₂ to drain charge from the circuit comprising C_(L), C₁, and C₂. One deliberately chooses I₂ to be lower than I₁, resulting in a relatively slow voltage ramp down on V_(X) back toward V_(CM). At the instant where the comparator 130 detects V_(X)<V_(CM) again, the sampling switch 150 is opened and the charge stored on C_(L) is sampled and frozen.

FIG. 2 depicts a typical timing diagram for the CBSC circuit 100 for the charge transfer phase. Initially the switch signal S is asserted. As a result, the sampling switch 150 is closed and the load C_(L) is terminated to V_(CM). In the mean while, V_(O) stays at the sampled level from the previous cycle and V_(X) is close to V_(CM). The transfer phase φ₂, starting at time t₁ and ending at time t₅, comprises four sub-phases: preset (P), coarse charge transfer (E₁), fine charge transfer (E₂), and hold (H). The CBSC circuit 100 first enters the P phase (at time t₁), where it pulls the output node V_(O) to V_(SS) and causes V_(X) to drop to V_(XO), which is below V_(CM). At time t₂, it enters the E₁ phase, where comparator detects V_(X)<V_(CM) and CP 140 injects charge into the circuit comprising C_(L), C₂, and C₁, resulting in relatively fast voltage ramp up on both V_(O) and V_(X). The E₂ phase starts at time t₃, the instant where comparator 130 detects V_(X)>V_(CM). Note that due to circuit delay, t₃ slightly trails the exact time instant where V_(X) rises past V_(CM). During the E₂ phase, CP 140 drains charge from the circuit comprising C_(L), C₂, and C₁, resulting in a relatively slow voltage ramp down on both V_(O) and V_(X). Finally, the CBSC circuit 100 enters the H phase at time t₄, where comparator 130 detects V_(X)<V_(CM) again. Again, due to circuit delay, t₄ slightly trails the exact time instant where V_(X) falls past V_(CM). During the H phase, S is de-asserted and thus the charge stored on C_(L) is frozen, and also charge pump circuit CP 140 is disabled.

There are two problems associated with the prior art CBSC circuit 100. First, there is always an error on the final sampled value of V_(O) due to the circuit delay. As clearly seen in FIG. 2, the actual sampled value is always slightly lower than the ideal sample value, which is the value at the exact time instant where V_(X) falls past V_(CM). Second, the prior art CBSC circuit 100 is subject to error due to the offset in the comparator 130.

What is needed is a method to remove the errors due to circuit non-idealities, in particular circuit delay and comparator offset, for CBSC circuit.

BRIEF SUMMARY OF THIS INVENTION

In an embodiment, an error canceling comparator based switch capacitor (CBSC) circuit is disclosed; the circuit comprises a comparator, a charge pump circuit, and a plurality of capacitors; and the CBSC works cyclically through multiple phases including at least a sampling phase (φ₁) and a transfer phase (φ₂), wherein during the sampling phase (φ₁) the CBSC circuit samples both an input voltage and an error due to circuit non-idealities and during the transfer (φ₂) phase the CBSC amplifies the sampled input voltage by a fixed ratio and transfers a resultant voltage to a load capacitor while canceling the error by reversing a polarity of connection for an internal capacitor within the CBSC circuit.

In an embodiment, a method of canceling error in a comparator based switch capacitor (CBSC) is disclosed; the circuit comprises a comparator, a charge pump circuit, and a plurality of capacitors; and the method comprises: operating the CBSC circuit cyclically through multiple phases including at least a sampling phase (φ₁) and a transfer phase (φ₂), sampling an error due to circuit non-idealities during the sampling phase (φ₁), and canceling the error by reversing the polarity of connection for an internal capacitor within the CBSC circuit during the transfer phase (φ₂).

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, both as to device and method of operation, together with features and advantages thereof may best be understood by reference to the following detailed description with the accompanying drawings in which:

FIG. 1 depicts a prior art comparator based switch capacitor (CBSC) circuit during transfer phase.

FIG. 2 depicts a typical timing diagram for the CBSC circuit depicted in FIG. 1.

FIG. 3 depicts an embodiment of CBSC circuit during sampling phase in accordance with the present invention.

FIG. 4 depicts a typical timing diagram for the CBSC circuit depicted in FIG. 3.

FIG. 5 depicts an embodiment of CBSC circuit during transfer phase in accordance with the present invention.

FIG. 6 depicts a typical timing diagram for the CBSC circuit depicted in FIG. 5.

FIG. 7 depicts a differential version of the circuit depicted in FIG. 5.

DETAILED DESCRIPTION OF THIS INVENTION

The present invention relates to error cancellation for comparator based switch capacitor (CBSC) circuit. While the specifications describe several example embodiments of the invention considered best modes of practicing the invention, it should be understood that the invention can be implemented in many ways and is not limited to the particular examples described below or to the particular manner in which any features of such examples are implemented.

The present invention is general and applicable to any sampled-data analog circuit. For example, the present invention can be applied to a pipeline ADC (analog-digital converter), and also to a delta-sigma ADC (analog-digital converter). A sampled-data analog circuit usually works in a multi-phase manner. By way of example but not limitation, a two-phase switch-capacitor circuit in accordance with the present invention is disclosed. Like the prior art described earlier, the two phases are sampling phase (φ₁) and transfer phase (φ₂). Without loss of generality, a pipeline ADC will be used as an example to illustrate the principle taught by the present invention.

In a preferred embodiment, the circuit configuration during sampling phase (φ₁) is depicted in FIG. 3. Here, the input voltage V_(I) is sampled by C₁, just like the case in the prior art described earlier. At the same time, however, one also uses a CBSC circuit 100A that is exactly the same as the prior art CBSC 100 circuit shown in FIG. 1 except for the following changes: (1) C₁ is replaced by C′₁, which has substantially the same capacitance as C₁, (2) C_(L) is replaced by C′_(L), which has substantially the same capacitance as C_(L), (3) C₂ is connected in a reverse polarity, and (4) an additional capacitor C′₂ having substantially the same capacitance as C₂ is connected in parallel with C′₁. CBSC 100A has substantially the same configuration as CBSC 100, and also works in a very similar manner.

An exemplary timing diagram for CBSC 100A is shown in FIG. 4, which is very similar to FIG. 2 except for (1) an additional signal R is used to clear up the respective charges stored on C′₁, C₂, and C′₂ by connecting their both ends to V_(CM), (2) clock φ₂ is replaced by clock φ₁, (3) phases P, E₁, E₂, and H are replaced by P′, E′₁, E′₂, and H′, respectively, and (4) timing instants t₁ to t₅ are replaced by t′₁ to t′₅, respectively. The signal R is momentarily asserted for a brief time and then de-asserted before time t′₁, where the sampling phase (φ₁) commences. Due to the signal R, both C′₁ and C′₂ have zero charge right before CBSC 100A enters the sampling phase (φ₁). The sampling phase (φ₁), starting at time t′₁ and ending at time t′₅, comprises four sub-phases: preset (P′), coarse charge transfer (E′₁), fine charge transfer (E′₂), and hold (H′). The CBSC circuit 100A first enters the P′ phase (at time t′₁), where it pulls the output node V_(O) to V_(SS) and causes V_(X) to drop to V′_(XO), which is below V_(CM). At time t′₂, it enters the E′₂ phase, where comparator detects V_(X)<V_(CM) and CP 140 injects charge into the circuit comprising C′_(L), C₂, C′₁, and C′₂, resulting in relatively fast voltage ramp up on both V_(O) and V_(X). The E′₂ phase starts at time t′₃, the instant where comparator 130 detects V_(X)>V_(CM). Note that due to circuit delay, t′3 slightly trails the exact time instant where V_(X) rises past V_(CM). During the E′₂ phase, CP 140 drains charge from the circuit comprising C′_(L), C₂, C′₁, and C′₂, resulting in a relatively slow voltage ramp down on both V_(O) and V_(X). Finally, the CBSC circuit 100A enters the H′ phase at time t′₄, where comparator 130 detects V_(X)<V_(CM) again. Again, due to circuit delay, t′₄ slightly trails the exact time instant where V_(X) falls past V_(CM). During the H′ phase, S is de-asserted and charge pump circuit CP 140 is disabled. Thus, the charges stored on C′₁, C′₂, C₂, and C′_(L) are all frozen.

If CBSC 100A has zero comparator offset and zero circuit delay, then there will be zero charge on all for capacitors C′₁, C′₂, C₂, and C′_(L) at the end of sampling phase (φ₁). However, due to nonzero comparator offset and circuit delay, there will be some charge stored for each of the four capacitors. Let the comparator offset be V_(OS) (i.e. comparator 130 favorably gives the “−” end an advantage in an amount of V_(OS) when performing comparison.) Let the current draining from C₂ during E′₂ be I. Also, let the circuit delay between the exact timing instant where V_(X) falls past V_(CM) and the actual timing instant where comparator 130 detects V_(X)<V_(CM) be τ. Then, at the end of sampling phase (φ₁), the charges on C₁, C′₂, and C₂ are: Q₁ = C₁(V₁ − V_(CM)) $Q_{2}^{\prime} = {{{- C_{2}^{\prime}}V_{OS}} + \frac{I\quad\tau\quad C_{2}^{\prime}}{C_{1}^{\prime} + C_{2}^{\prime}}}$ and Q ₂=−(C′ ₁ +C′ ₂)V _(OS) +Iτ, respectively.

In a preferred embodiment, the circuit configuration during transfer phase (φ₂) is depicted in FIG. 5. Here, one uses a CBSC circuit 100B that is substantially the same as the prior art CBSC 100 circuit shown in FIG. 1 except that the additional capacitor C′₂, which stores an error charge Q′₂ at the end of the transfer phase (φ₁), is now connected in parallel with C₁. CBSC 100B has substantially the same configuration as CBSC 100, and also works in a similar manner.

An exemplary timing diagram for CBSC 100B is shown in FIG. 6, which is essentially the same as FIG. 2 except that the output voltage V_(O) is exactly the same as the ideal sampled value at the end of the clock transfer. (Besides, unlike in FIG. 2 where comparator offset is not included, we have included in FIG. 6 an offset voltage V_(OS) in the V_(X) waveform.) The error due to comparator offset and circuit delay is cancelled due to the initial error charges Q′₂ and Q₂ stored on C′₂ and C₂ respectively. The exact cancellation is proved as follows.

In connecting C₁ in parallel with C′₂, a charge sharing occurs to make the voltage across C₁ identical with the voltage across C′₂. The initial value of V_(X) right before CBSC 100B enters transfer phase (φ₂) is $V_{X}^{({init})} = {V_{CM} - \frac{Q_{1} + Q_{2}^{\prime}}{C_{1} + C_{2}^{\prime}}}$

During P phase, V_(O) is momentarily pulled low and so is V_(X). During E₁ phase, CP 140 injects charge so that V_(X) rises toward V_(CM)+V_(OS). Slightly after V_(X) rises past V_(CM)+V_(OS), E₂ phase commences and CP 140 drains charge so that V_(X) falls toward V_(CM)+V_(OS). Slightly after V_(X) falls past V_(CM)+V_(OS), H phase commences and the charges stored on all four capacitors (C₁, C₂, C′₂, and C_(L)) are frozen. The final value of V_(X) is then $V_{X}^{({final})} = {V_{CM} + V_{OS} - \frac{I\quad\tau}{C_{1} + C_{2}^{\prime}}}$

The total net charge transferred from C₁ and C′₂ to C₂ during the entire transfer phase (φ₂) is then Q ₁=(C ₁ +C′ ₂)·(V _(X) ^((final)) −V _(X) ^((init)))

Therefore, at the end of transfer phase (φ₂), the charge stored on C₂ is Q ₂ ^((final)) =Q ₂ +Q _(t)=−(C′ ₁ +C′ ₂)V _(OS) +Iτ+(C ₁ +C′ ₂)·(V _(X) ^((final)) −V _(X) ^((init)))

The final output voltage V_(O) is then $V_{O}^{({final})} = {V_{X}^{({final})} + \frac{Q_{2}^{({final})}}{C_{2}}}$

By manipulating above listed algebraic equations along with the conditions C′₁=C₁ and C′₂=C₂, one obtains V _(O) ^((final)) =V _(CM)+(V _(I) −V _(CM))·C ₁/C₂,

which is exactly the correct final output voltage for the case of zero comparator offset and zero circuit delay. The error due to comparator offset and circuit delay, therefore, has been completely cancelled.

For those of ordinary skill in the art, the principle disclosed by the present invention can be practiced in various alternative forms, including the following:

-   -   1. In an embodiment, one may pull the output voltage V_(O) to         V_(DD), the highest potential of the system, during the preset         (P or P′) phase, thus forcing the condition V_(X)>V_(CM) before         entering the coarse transfer phase (E₁ or E′₁). In that         scenario, I₁ needs to be changed to a current sink while I₂         needs to be changed to a current source.     -   2. In an embodiment, one may totally eliminate the fine transfer         phases E′₂ and E₂, as the error due to circuit delay will be         completely eliminated and therefore there is no need to use a         fine transfer phase to reduce the error caused by circuit delay.         In this case, the I₂ current is eliminated, and the overall         operation speed of the switch capacitor circuit improves.     -   3. In an embodiment, one may use a differential circuit instead         of a single-ended circuit. FIG. 7 depicts an exemplary circuit         that is a differential counterpart to the single-ended circuit         depicted in FIG. 5 for the sampling phase (φ₁). Note that         although the fine transfer phase E′₂ is eliminated in CP 140A of         FIG. 7, for those of ordinary skill in the art it is         straightforward to include the fine transfer phase by adding a         current source I₂₊ and a current sink I₂₋ that are both         controlled by E′₂. Also, for those of ordinary skill in the art,         it is straightforward to use a similar way to construct a         differential counterpart to the single-ended circuit depicted in         FIG. 6 for the transfer phase (φ₂).     -   4. In an embodiment, during transfer phase (φ₂), the “+” end of         capacitor C₁ and/or the “+” end of capacitor C′₂ in FIG. 5 may         be connected to a voltage different from V_(CM). For example,         for a pipeline ADC application, the “+” end of either capacitor         may be connected to one of many other predefined voltages         depending on the range of the voltage V_(I). The principle         taught by the present invention, however, applies equally well         to that scenario.     -   5. In a further embodiment, the capacitor C′₂ is implemented         using a plurality of capacitors, which are connected in parallel         during the sampling phase (φ₁), but during the transfer phase         (φ₂) their “+” ends may be connected to different voltages, each         chosen from either among many predefined voltages or connected         to an internal node within the system. The principle taught by         the present invention, however, applies equally well to that         scenario.     -   6. In a further embodiment, one may choose to clear up the         charges on C₂, C′₁, and C′₂ (by asserting the R signal)         following the end of the transfer phase (φ₂), instead of         preceding the beginning of the sampling phase (φ₁).

Also, there are many switches (besides switch 150) that are needed but not displayed in any of the figures. They are controlled by a plurality of clock signals to define the circuit configuration (i.e. the connections among circuit elements) for both sampling phase (φ₁) and transfer phase (φ₂). They are not shown in the figures because they are implied and deemed obvious to those of ordinary skill in the art.

Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims. 

1. An error canceling comparator based switch capacitor (CBSC) circuit comprising: a comparator, a charge pump circuit, and a plurality of capacitors; wherein during a sampling phase the CBSC circuit samples both an input voltage and an error due to CBSC circuit non-idealities and during a transfer phase the CBSC amplifies the sampled input voltage and transfers a resultant voltage to a load while canceling the error by reversing a polarity of connection for at least one of said capacitors.
 2. The CBSC circuit of claim 1, wherein the sampling phase comprises a preset sub-phase, a charge transfer sub-phase, and a hold sub-phase.
 3. The CBSC circuit of claim 1, wherein the transfer phase comprises a preset sub-phase, a charge transfer sub-phase, and a hold sub-phase.
 4. The CBSC circuit of claim 1, wherein the load comprises a capacitor.
 5. The CBSC circuit of claim 1, wherein said capacitors comprise a sampling capacitor and an integrating capacitor.
 6. The CBSC circuit of claim 5, wherein the sampling capacitor is coupled to the input voltage during the sampling phase.
 7. The CBSC circuit of claim 6, wherein the integrating capacitor is coupled to the charge pump during the sampling phase, and also coupled to the charge pump during the transfer phase but in a reverse polarity.
 8. The CBSC circuit of claim 1, wherein the CBSC circuit cyclically works through the sampling phase and the transfer phase.
 9. The CBSC circuit of claim 8, wherein said capacitors comprise a sampling capacitor and an integrating capacitor.
 10. The CBSC circuit of claim 9, wherein the sampling capacitor is coupled to the input voltage during the sampling phase.
 11. The CBSC circuit of claim 10, wherein the integrating capacitor is coupled to the charge pump during the sampling phase, and also coupled to the charge pump during the transfer phase but in a reverse polarity.
 12. The CBSC circuit of claim 9, wherein the integrating capacitor is coupled to the charge pump during the sampling phase, and also coupled to the charge pump during the transfer phase but in a reverse polarity.
 13. A method of canceling error in a comparator based switch capacitor (CBSC) circuit comprising a comparator, a charge pump circuit, and a plurality of capacitors, the method comprising: operating the CBSC circuit cyclically through a sampling phase and a transfer phase; sampling an input voltage and an error due to CBSC circuit non-idealities during the sampling phase; and amplifying and transferring the sampled input voltage to a load and canceling the error by reversing a polarity of connection for at least one of said capacitors.
 14. The method of claim 13, wherein the load comprises a capacitor.
 15. The method of claim 13, wherein the charge pump circuit comprises at least one of the following components: a current source and a current sink.
 16. The method of claim 13, wherein the sampling phase comprises a preset sub-phase, a charge transfer sub-phase, and a hold sub-phase.
 17. The method of claim 16, wherein the transfer phase comprises a preset sub-phase, a charge transfer sub-phase, and a hold sub-phase.
 18. The method of claim 13, wherein said capacitors include a sampling capacitor and an integrating capacitor.
 19. The method of claim 18, wherein the sampling capacitor is coupled to the input voltage during the sampling phase.
 20. The method of claim 19, wherein the integrating capacitor is coupled to the charge pump during the sampling phase, and also coupled to the charge pump during the transfer phase but in a reverse polarity. 